home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / src / stdc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.6 KB  |  64 lines

  1. /* stdc.h -- Macros to make source compile on both ANSI C and K&R C
  2.    compilers.  */
  3.  
  4. /* Copyright (C) 1993 Free Software Foundation, Inc.
  5.  
  6.    This file is part of GNU Bash, the Bourne Again SHell.
  7.  
  8.    Bash is free software; you can redistribute it and/or modify it
  9.    under the terms of the GNU General Public License as published by
  10.    the Free Software Foundation; either version 1, or (at your option)
  11.    any later version.
  12.  
  13.    Bash is distributed in the hope that it will be useful, but WITHOUT
  14.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  15.    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  16.    License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with Bash; see the file COPYING.  If not, write to the Free
  20.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  21.  
  22. #if !defined (__STDC_H__)
  23. #define __STDC_H__
  24.  
  25. /* Adapted from BSD /usr/include/sys/cdefs.h. */
  26.  
  27. /* A function can be defined using prototypes and compile on both ANSI C
  28.    and traditional C compilers with something like this:
  29.     extern char *func PROTO((char *, char *, int)); */
  30. #if defined (__STDC__)
  31.  
  32. #  if !defined (NULL)
  33. #    define NULL ((void *)0)
  34. #  endif
  35.  
  36. #  if !defined (PROTO)
  37. #    define PROTO(protos) protos
  38. #  endif
  39.  
  40. #  if !defined (__GNUC__)
  41. #    define inline
  42. #  endif
  43.  
  44. #else /* ! __STDC__ */
  45.  
  46. #  if !defined (NULL)
  47. #    define NULL 0x0
  48. #  endif
  49.  
  50. #  if !defined (PROTO)
  51. #    define PROTO(protos) ()
  52. #  endif
  53.  
  54. #endif /* ! __STDC__ */
  55.  
  56.  
  57. #ifdef HAVE_DUMB_CC
  58. #undef PROTO
  59. #define PROTO(protos) ()
  60. #endif
  61.  
  62.  
  63. #endif /* !__STDC_H__ */
  64.